extends Card

func init():
    att.cry = 5
    att.atk = 5
    att.maxHp = 7
    lv = 2
    type = TYPE.CREATURE
    camp = "m_hearthstone"
    name = "末日守卫"
    tab = "恶魔"
    dec = "冲锋，战吼：随机放逐两张牌。"

func _connect():
    var skill:Skill = addSkill("k_zhanHou")
    addSkill("k_chongFeng")
    skill.connect("onTrigger",self,"runTrigger")

func runTrigger():
    var number = 2   # 放逐次数
    for time in range(number):
        # 找到手牌
        var cards = []  # 手牌
        for i in getHero().hand.items:
            cards.append(i)
        # 丢牌
        if cards.size() > 0:
            var target:Card = sys.rndListItem(cards)
            # 放逐 ———— 此处可以修改更多，比如加入弃牌池子
            target.exile()

